﻿#include <stdio.h>
#include <Windows.h>
#include <time.h>
#include <string.h>
void thoat() //hàm hiển thị lời chào và thoát game
{
	system("cls");
	char bye[100]="Cam on ban da danh thoi gian choi!\nHen gap lai ban!!!";
	for (int i=0;i<strlen(bye);i++)
	{
		int begin=clock();
		while (clock()-begin<100);
		printf("%c",bye[i]);
	}
	printf("\n");
	int begin=clock();
	while (clock()-begin<1000);
	exit(0);
}